package com.yuyou.fn.portal.vo;

import com.github.wens.mybatisplus.examples.Example;
import org.springframework.data.annotation.Id;
import org.springframework.data.geo.Point;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 校区
 *
 */
@Document(collection="campus")
public class OuterCampus implements Serializable {


	private static final long serialVersionUID = 1L;

	public static Example<OuterCampus> createExample(){
		return new Example<OuterCampus>(OuterCampus.class);
	}

	@Id
	private Long campusId;

	/** 校区名称 */

	private String campusName;

	private Long areaTeamId;

	private Long busTeamId;

	/** 校区详细地址 */
	private String address;

	/** 地理经纬度 如：23.03,113.75 */
	private String geoLocation;

	/**  */
	private Date createTime;

	/**  */
	private Date updateTime;

	/** 电话号码 */
	private String phoneNo;

	/** 区域名称 */
	private String areaTeamName;

	/** 业务组名称 */
	private String busTeamName;

	/** 省份 */
	private String province;

	/** 城市 */
	private String city;

	/** 区县 */
	private String district;


	/**
	 * 校区地理位置
	 */
	@GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2D)
	private Point campusLocation ;

	public Long getCampusId() {
		return this.campusId;
	}

	public void setCampusId(Long campusId) {
		this.campusId = campusId;
	}

	public String getCampusName() {
		return this.campusName;
	}

	public void setCampusName(String campusName) {
		this.campusName = campusName;
	}

	public Long getAreaTeamId() {
		return this.areaTeamId;
	}

	public void setAreaTeamId(Long areaTeamId) {
		this.areaTeamId = areaTeamId;
	}

	public Long getBusTeamId() {
		return this.busTeamId;
	}

	public void setBusTeamId(Long busTeamId) {
		this.busTeamId = busTeamId;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getGeoLocation() {
		return this.geoLocation;
	}

	public void setGeoLocation(String geoLocation) {
		this.geoLocation = geoLocation;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getAreaTeamName() {
		return this.areaTeamName;
	}

	public void setAreaTeamName(String areaTeamName) {
		this.areaTeamName = areaTeamName;
	}

	public String getBusTeamName() {
		return this.busTeamName;
	}

	public void setBusTeamName(String busTeamName) {
		this.busTeamName = busTeamName;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return this.district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public Point getCampusLocation() {
		return campusLocation;
	}

	public void setCampusLocation(Point campusLocation) {
		this.campusLocation = campusLocation;
	}
}
